﻿using System;
using System.ComponentModel.DataAnnotations;

namespace IntoStationSystem.Entity
{
    public class ScanCode
    {
        [Key]
        public int Count { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; }
        /// <summary>
        /// 产品型号名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 零件名称
        /// </summary>
        public string PartName { get; set; }
        /// <summary>
        /// 扫码匹配字符
        /// </summary>
        public string MatchChar { get; set; }
        /// <summary>
        /// <summary>
        /// 扫码字符长度
        /// </summary>
        public int CharLen { get; set; }
    }

    public class ResetScanCode
    {
        [Key]
        public int Count { get; set; }
        public DateTime DateTime { get; set; }
        /// <summary>
        /// 码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 是否重置
        /// </summary>
        public bool IsReset { get; set; }
    }
}
